//
//  SQMyAccountViewController.m
//  pai
//
//  Created by pro on 14-11-12.
//  Copyright (c) 2014年 linjunjing. All rights reserved.
//

#import "SQMyAccountViewController.h"
#import "SQResetPasswordViewController.h"
#import "Global.h"

@interface SQMyAccountViewController ()

@end

@implementation SQMyAccountViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self setTitle:@"账号设置"];
    
    [self.nameLabel setText:[Global instance].userinfo.username];
    [self.mobileLabel setText:[Global instance].userinfo.mobile];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)doActionChangePassword:(id)sender {
    SQResetPasswordViewController* rpvc = [[SQResetPasswordViewController alloc]init];
    [self.navigationController pushViewController:rpvc animated:YES];
}
@end
